package org.web3j.spring.autoconfigure;

import static org.web3j.spring.autoconfigure.Web3jProperties.WEB3J_PREFIX;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * web3j property container.
 */
@ConfigurationProperties(prefix = WEB3J_PREFIX)
public class Web3jProperties {

	public static final String WEB3J_PREFIX = "web3j";

	private String clientAddress;

	private Boolean adminClient;

	private String networkId;

	private String wssClientAddress;

	private Long httpTimeoutSeconds;

	public String getClientAddress() {
		return clientAddress;
	}

	public void setClientAddress(String clientAddress) {
		this.clientAddress = clientAddress;
	}

	public Boolean isAdminClient() {
		return adminClient;
	}

	public void setAdminClient(Boolean adminClient) {
		this.adminClient = adminClient;
	}

	public String getNetworkId() {
		return networkId;
	}

	public void setNetworkId(String networkId) {
		this.networkId = networkId;
	}

	public Long getHttpTimeoutSeconds() {
		return httpTimeoutSeconds;
	}

	public void setHttpTimeoutSeconds(Long httpTimeoutSeconds) {
		this.httpTimeoutSeconds = httpTimeoutSeconds;
	}

	public String getWssClientAddress() {
		return wssClientAddress;
	}

	public void setWssClientAddress(String wssClientAddress) {
		this.wssClientAddress = wssClientAddress;
	}
}
